package com.movitech.mobile.cz.base.supplier.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.movitech.mobile.cz.base.common.util.CommonConstants;
import com.movitech.mobile.cz.base.supplier.entity.SEvaluationTemplateDetails;
import com.movitech.mobile.cz.base.supplier.mapper.SEvaluationTemplateDetailsMapper;
import com.movitech.mobile.cz.base.supplier.service.SEvaluationTemplateDetailsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 履约评估模板明细 服务实现类
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-09-06
 */
@Service
public class SEvaluationTemplateDetailsServiceImpl extends ServiceImpl<SEvaluationTemplateDetailsMapper, SEvaluationTemplateDetails> implements SEvaluationTemplateDetailsService {
    @Override
    public List<SEvaluationTemplateDetails> getByParentId(String parentId) {
        SEvaluationTemplateDetails where = new SEvaluationTemplateDetails();
        where.setEvaluationTemplateId(parentId);
        where.setDelFlag(CommonConstants.DEL_FLAG_NORMAL);
        return selectList(new EntityWrapper<>(where));
    }
}
